﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace GJReminder.View
{
    /// <summary>
    /// Interaction logic for TestWnd.xaml
    /// </summary>
    public partial class TestWnd : Window
    {
        private ViewModel.ConsoleViewModel m_viewModel;

        public TestWnd()
        {
            InitializeComponent();

            m_viewModel = new GJReminder.ViewModel.ConsoleViewModel();

            ((ICommand)m_viewModel.GetEventsCommand).Execute(null);
            this.DataContext = m_viewModel;
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ((ICommand)m_viewModel.GetEventsCommand).Execute(null);
        }
    }
}
